package com.wisely.highlight_spring4.ch1.di;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service //声明该类被spring管理
public class UseFunctionService {
	@Autowired //注入bean，可用@Resource替换
	FunctionService functionService;
	
	String SayHello(String word){
		return functionService.sayHello(word);
	}

}
